home *** CD-ROM | disk | FTP | other *** search
/ MacTech 1 to 12 / MacTech-vol-1-12.toast / Source / MacTech® Magazine / Volume 09 - 1993 / 09.03 Mar 93 / Sound 101 / Sound101.h < prev   
Encoding:
C/C++ Source or Header  |  1992-11-09  |  1.2 KB  |  52 lines  |  [TEXT/KAHL]

  1. /************************************************************************************
  2.  
  3. Sound101.h
  4.  
  5. © 1992 Praxitel, Inc. and Iggi Monahelis
  6.  
  7. Defines and function protos for the project
  8.  
  9. *************************************************************************************/
  10. #include <Sound.h>
  11. #include <SoundInput.h>
  12.  
  13.  
  14. void Record_snd_resource(long quality);
  15. void Record_AIFF_sound(long quality);
  16. void PlayASound(void);
  17. void PlaySND(int tempId);
  18. void PlayAIFF(void);
  19. extern pascal void MyCallBack (SndChannelPtr chan);
  20. Boolean DisplayGetFile(SFReply *reply);
  21. void GetQuality(void);
  22. void ToggleRadioButtons( DialogPtr theDialog, short oldItem, short newItem);
  23. void SetRadioButton( DialogPtr theDialog, short theItem);
  24.  
  25. void main(void);
  26. void SetUpMenus(void);
  27. void EventLoop(void);
  28. void DoEvent(EventRecord *event);
  29. void DoMenuCommand(long menuResult);
  30. void Terminate(void);
  31.  
  32.  
  33.  
  34. #define aboutDlgID         128
  35. #define optionsDlgID    129
  36.  
  37. #define dDone         1
  38. #define dCancel     2
  39. #define dBest        3
  40. #define dBetter        4
  41. #define dGood        5
  42.  
  43.  
  44. #define    mApple                    128        /* Apple menu */
  45. #define    iAbout                    1
  46.  
  47. #define    mFile                    129        /* File menu */
  48. #define    iPlaySound                1
  49. #define iRecordsndSound            2
  50. #define    iRecordAIFFSound        3
  51. #define iQuality                5
  52. #define iQuit                    6